package com.ctshk.rpc.air.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.List;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.air.req
 * @Author: hef
 * @CreateTime: 2021-05-27 15:13
 * @Description: 描述
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ProductFullPriceReq implements Serializable {

    @NotNull(message = "产品id不能为空")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @NotNull(message = "时间不能为空")
    @ApiModelProperty(value = "时间")
    private LocalDate date;

    @NotNull(message = "旅客类型不能为空")
    @Size(min = 1,message = "旅客类型不能为空")
    @ApiModelProperty(value = "旅客类型ID集合")
    private List<Long> touristTypes;

    @NotNull(message = "线上渠道id不能为空")
    @ApiModelProperty(value = "线上渠道ID")
    private Long channelId;

}
